/*
 * @Description:
 * @version:
 * @Author: 潘骏杰
 * @Date: 2021-11-22 16:23:06
 * @LastEditors: 潘骏杰
 * @LastEditTime: 2021-12-23 16:58:11
 */

import request from '@/utils/request'
import qs from 'qs'
// import CryptoJS from '@/utils/CryptoJS'

export function get(data) {
  return request({
    url: '',
    method: 'get',
    params: data
  })
}

export function post(data) {
  return request({
    url: '',
    method: 'post',
    data: qs.stringify(data)
  })
}
// 获取url
//
export function Entry(params) {
  return request({
    url: '/api/h5/third/hospital',
    method: 'post',
    data: params
  })
}

// 获取医院列表接口
export function postHos(params) {
  return request({
    url: '/api/hospitals',
    method: 'post',
    data: params
  })
}

// 获取医院列表接口
export function postHosQuery(params) {
  return request({
    url: '/api/hospitals/query',
    method: 'post',
    data: params
  })
}

// 获取门诊列表
export function postDepts(params) {
  return request({
    url: '/api/depts',
    method: 'post',
    data: params
  })
}

// 获取查询排班医生
export function postDoctors(params) {
  return request({
    url: '/api/queryDeptDoctors',
    method: 'post',
    data: params
  })
}

// 查询号源日程
export function postSchedules(params) {
  return request({
    url: '/api/querySceduleSub',
    method: 'post',
    data: params
  })
}
